<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'domain'        => config('admin.route.domain'),
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

    $router->resource('users', 'UserController');
    $router->resource('user/address', 'AddressController');
    $router->resource('accounts', 'AccountController');
    $router->resource('account_fund', 'AccountFundController');
    $router->resource('article', 'ArticleController');
    $router->resource('orders', 'OrderController');
    $router->resource('order/parcel', 'OrderParcelController');
    $router->resource('order/preset', 'OrderPresetController');
    $router->resource('forwarders', 'ForwarderController');
    $router->resource('forwarder/forwarder_contact', 'ForwarderContactController');
    $router->resource('messages', 'MessageController');
    $router->resource('configs', 'ConfigController');
    $router->resource('countrys', 'CountryController');
    $router->resource('harbours', 'HarbourController');
    $router->resource('ships', 'ShipController');
    $router->resource('airlines', 'AirlineController');
    $router->resource('airports', 'AirportController');
    $router->resource('fba_storage', 'FbaStorageController');
    $router->resource('subjects', 'SubjectController');
    $router->resource('subject_user', 'SubjectUserController');
    $router->resource('world_city', 'WorldCityController');
    $router->resource('badges', 'BadgeController');
    $router->resource('badge_user', 'BadgeUserController');
    $router->resource('chat_room', 'ChatRoomController');
    $router->resource('chat_room_user', 'ChatRoomUserController');
    $router->resource('chat_message', 'ChatMessageController');
    $router->resource('forwarder_comment', 'ForwarderCommentController');
    $router->resource('forwarder_complain', 'ForwarderComplainController');
    $router->resource('forwarder_follow', 'ForwarderFollowController');
    $router->resource('forwarder_line', 'ForwarderLineController');
    $router->resource('forwarder_line_cost', 'ForwarderLineCostController');
    $router->resource('forwarder_line_cost_other', 'ForwarderLineCostOtherController');
    $router->resource('forwarder_line_comment', 'ForwarderLineCommentController');
    $router->resource('forwarder_stat', 'ForwarderStatController');
    $router->resource('forwarder_store', 'ForwarderStoreController');
    $router->resource('pay_order', 'PayOrderController');
});
